package jgl.vajra.management.part.mine.contract;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.bean.HomeCarModelBean;
import jgl.vajra.management.bean.HomeMechanicsBean;
import jgl.vajra.management.databinding.ActivityCarAddBinding;
import jgl.vajra.management.widget.mvvm.model.BaseModel;
import jgl.vajra.management.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.management.widget.mvvm.viewmodel.BaseViewModel;

public class CarAddContract {
    public abstract static class Model extends BaseModel {
        public abstract Observable<List<HomeMechanicsBean>> getCarTypeData(Map<String, Object> map);

        public abstract Observable<List<HomeCarModelBean>> getCarModelData(Map<String, Object> mapCarModel);

        public abstract Observable<String> getCarAddFeeData(Map<String, Object> map);
    }

    public interface View extends BaseMVVMView {

        void onCustom();

        void onCarType(int position,HomeCarModelBean itemData);

        void returnCarTypeBean(List<HomeMechanicsBean> homeMechanicsBean);

        void returnHomeCarModelBean(List<HomeCarModelBean> data);

        void returnCarAddFeeData(String data);
    }

    public abstract static class ViewModel extends BaseViewModel<View, ActivityCarAddBinding, Model> {

        public abstract void getCarTypeData(Map<String, Object> map);

        public abstract void getCarModelData(Map<String, Object> mapCarModel);

        public abstract void getCarAddFeeData(Map<String, Object> map);
    }
}
